package com.neusoft.elmboot.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neusoft.elmboot.mapper.TranDetailMapper;
import com.neusoft.elmboot.po.Business;
import com.neusoft.elmboot.po.TranDetail;

import com.neusoft.elmboot.service.TranDetailService;
import com.neusoft.elmboot.util.CommonUtil;


@Service
public class TranDetailServiceImpl implements TranDetailService{
	@Autowired
	 private TranDetailMapper trandetailMapper;
	@Override
	 public int saveTranDetail(TranDetail trandetail) {
		trandetail.setTrandate(CommonUtil.getCurrentDate());
	 return trandetailMapper.saveTranDetail(trandetail);
	 }
	
	@Override
	 public List<TranDetail> listDetailByUserId(String userId){
		 return trandetailMapper.listDetailByUserId(userId);
	 }

}
